//
//  Test.c
//  Stack
//
//  Created by Xavier on 2023/10/16.
//

#include <stdio.h>
#include "Stack.h"
int main(int argc, const char * argv[]) {
    Stack st;
    StackInit(&st);
    StackPush(&st, 1);
    StackPush(&st, 3);
    StackPush(&st, 5);
    StackPush(&st, 7);
    StackPush(&st, 9);
    StackPush(&st, 11);
    StackPrint(&st);
    
    StackPop(&st);
    StackPrint(&st);
    
    STDataType top = StackTop(&st);
    printf("Top:%d\n", top);
    int count = StackSize(&st);
    printf("stack have %d element\n", count);
    
    //进制转化
    Stack st2;
    STDataType num = 100;
    printf("将十进制的%d转化为8进制为：", num);
    StackConvertDecimalToOctal(&st2, num);
    
}
